package com.vipboot.framework.core.constant;

/**
 * 缓存的key 常量
 */
public interface CacheKeyConst {

    /**
     * 在线用户 redis key
     */
//    String ONLINE_TOKEN_KEY = "online_tokens:";
    String OnlineTokenKey = "OnlineToken:";

    /**
     * 参数管理 cache key
     */
//    String SYS_CONFIG_KEY = "sys_config:";
    String SysConfigKey = "SysConfig:";

    /**
     * 字典管理 cache key
     */
//    String SYS_DICT_KEY = "sys_dict:";
    String SysDictKey = "SysDict:";


    /**
     * 全局 redis key (业务无关的key)
     */
//    String GLOBAL_REDIS_KEY = "global:";
    String GlobalRedisKey = "Global:";

    /**
     * 验证码 redis key
     */
//    String CAPTCHA_CODE_KEY = GlobalRedisKey + "captcha_codes:";
    String CaptchaCodeKey = GlobalRedisKey + "CaptchaCode:";

    /**
     * 防重提交 redis key
     */
//    String REPEAT_SUBMIT_KEY = GlobalRedisKey + "repeat_submit:";
    String RepeatSubmitKey = GlobalRedisKey + "RepeatSubmit:";

    /**
     * 限流 redis key
     */
//    String RATE_LIMIT_KEY = GlobalRedisKey + "rate_limit:";
    String RateLimitKey = GlobalRedisKey + "RateLimit:";

    /**
     * 登录账户密码错误次数 redis key
     */
//    String PWD_ERR_CNT_KEY = GLOBAL_REDIS_KEY + "pwd_err_cnt:";
    String PwdErrCntKey = "PwdErrCnt:";

    /**
     * 三方认证 redis key
     */
//    String SOCIAL_AUTH_CODE_KEY = GLOBAL_REDIS_KEY + "social_auth_codes:";
    String SocialAuthCodeKey = "SocialAuthCode:";
}
